class CreatePartners < ActiveRecord::Migration[6.0]
  def change
    create_table :partners do |t|
      t.string :code
      t.string :name
      t.string :shortname
      t.string :partner_type
      t.integer :partner_category_id
      t.integer :payable_partner_id
      t.integer :deputy_depart_id
      t.integer :sales_id
      t.string :address
      t.string :tel
      t.string :fax
      t.integer :tax_no
      t.string :bank
      t.integer :bank_account
      t.string :bank_address

      t.timestamps
    end
  end
end
